#ifndef __DAC124S085_H__
#define __DAC124S085_H__
/**
* @note: not 124s085, new CEM plus using 104S085 DAC
* DAC_MAX_VALUE need to change to 10bit
*
*/
/* chip port address */
#define DAC124S085_VOUTA                 (0x0)       //control CH1 offset
#define DAC124S085_VOUTB                (0x1)       //control CH2 offset
#define DAC124S085_VOUTC                (0x2)       //control Trigger
#define DAC124S085_VOUTD                (0x3)       //control expand adjust

/* chip operate code */
#define DAC124S085_OP_WRITE_ONLY        (0x0)
#define DAC124S085_OP_WRITE_UPDATE        (0x1)
#define DAC124S085_OP_WRITE_ALL_UPDATE    (0x2)
#define DAC124S085_OP_POWER_DOWN_OUTPUT    (0x3)

#define DAC124_UP_SLOPE                    (1)
#define DAC124_DOWN_SLOPE                (0)

#define DAC_MAX_VALUE                   (0xfff)// DAC 10/12 bit 3ff/fff

extern "C" void HW_InitDAC124S085(void);
extern "C" void DAC124S085_SetPort(short port, short cmd, short value);

#endif /*__DAC124S085_H__*/

